//
//  ZLWProductCell.m
//  EPA
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 zlw. All rights reserved.
//

#import "ZLWProductCell.h"

@interface ZLWProductCell ()
@property (weak, nonatomic) IBOutlet UILabel *TitleLable;
@property (weak, nonatomic) IBOutlet UIImageView *image_covering;



@end

@implementation ZLWProductCell

-(void)layoutSubviews
{
    self.TitleLable.text = self.model.title;
  
 
    [self.image_covering sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg]];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (IBAction)tizhuan:(UIButton *)sender {
    NSURL *url = [NSURL URLWithString:self.model.buyurl];
    [[UIApplication sharedApplication] openURL:url];
}

@end
